/*
 * @Author: wuzhen
 * @Date: 2020-01-13 13:28:41
 * @LastEditors  : wuzhen
 * @LastEditTime : 2020-01-17 13:31:02
 * @Description: 头部注释
 */
import Vue from "vue";
import Vuex from "vuex";
import vuexModules from "./modules";
import getters from "./getters";
import createPersistedState from "vuex-persistedstate";

Vue.use(Vuex);

const store = new Vuex.Store({
  modules: vuexModules,
  getters,
  //  {
  //     reducer(val) {
  //       return {
  //         system: {
  //           screen: val.system.screen
  //         }
  //       };
  //     }
  //   }
  plugins: [createPersistedState()]
});

export default store;
